package com.ycj;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ycj.service.IMyService;


@Controller
public class myController {
	@Autowired
	IMyService myService;
	
	@RequestMapping("/test")
	public ModelAndView test(){
		ModelAndView result=new ModelAndView();
		result.setViewName("showUser");
		result.addObject("map", myService.getInfo());
		return result;
		
	}

}
